require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/packagetask'

TTVERSION = "0.3"

task :default => [ :doc ]

Rake::RDocTask.new(:doc) do |rdoc|
	rdoc.main = 'README'
	rdoc.rdoc_files.add(["README*", "LICENSE", "ChangeLog", "*.rb"])
	rdoc.rdoc_dir = 'doc'
	rdoc.options = ["--all"]
	rdoc.title = "UQ Timetabler Ruby API"
end

Rake::PackageTask.new("timetable", TTVERSION) do |pack|
	pack.need_zip = true
	pack.package_files.include("*", "js/*", "doc/**/*")
end
	
